<ion-view title="上架详情">
    <ion-nav-buttons side="right">
        <a class="button button-icon icon ion-home" href="#/app/boxs"></a>
    </ion-nav-buttons>
  <ion-content class="has-header" has-bouncing="true" overflow-scroll="false">



      <ion-item class="box-first" ng-repeat="door in data.doors">
        <table style="border: 0px;">
            <tr>
                <td style="width: 5%;text-align: center;border: 0px">
                    <span style="">{{door.index}}</span>
                </td>
                <td style="width:15%;text-align: center;border: 0px">
                    <table class="testTab" ng-style="wid">
                        <tr ng-repeat="row in data.layout.rows">
                            <td ng-repeat="column in data.layout.columns"   style="width: 12px;height: 12px;">
                                <div ng-if="door.index==(row-1)*data.layout.column+column&&(!door.empty)" style="background-color: #ff0000;width: 100%;height: 100%;margin: 0px">

                                </div>
                                <div ng-if="door.index==(row-1)*data.layout.column+column&&door.empty" style="background-color: green;width: 100%;height: 100%;margin: 0px">

                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
                <td style="width: 45%;text-align: center;border: 0px;color: green" ng-if="door.empty">

                </td>
                <td style="width: 45%;text-align: center;border: 0px;color: #ff0000" ng-if="!door.empty">

                </td>
                <td style="width: 25%;border: 0px;">
                    <div style="float: right">
                        <!--<a class="button button-stable button-small" ng-show="door.empty" style="padding: 0px 20px">上架</a>-->
                        <a class="button button-positive button-small"  ng-click="sellGoods($index)" style="padding: 0px 20px;">查看</a>
                    </div>
                </td>
            </tr>
        </table>




          <!--<label class=" item-input item-select" style="margin-top: 20px">-->
              <!--<div class="input-label" style="color: #ff950e">-->
                  <!--用途设置-->
              <!--</div>-->
              <!--<select ng-model="door.use"  ng-options="m.word for m in model" ng-change="useSet({{door.index}},{{door.empty}})">-->
              <!--</select>-->

          <!--</label>-->
      </ion-item>
      <div style="text-align: center;">
          <div id="testId" ng-if="show" class="alert">
              <span style="padding: 10px;background-color: #000000;color: #ffffff">{{message}}</span>
          </div>
      </div>
  </ion-content>
</ion-view>

